package com.twentyfour.dao;

import com.twentyfour.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface LeaderMapper {
    int addAthlete(Athlete athlete);
    int addCoach(Coach coach);
    int addDoctor(Doctor doctor);
    int addReferee(Referee referee);
    int addLeader(Leader leader);
    int addAthleteItem(Athlete_Item athlete_item);


    int deleteAthlete(@Param("athleteId") Integer athleteId);
    int deleteCoach(@Param("coachId") Integer coachId);
    int deleteDoctor(@Param("doctorId") Integer doctorId);
    int deleteReferee(@Param("refereeId") Integer refereeId);
    int deleteLeader(@Param("LeaderId") Integer leaderId);

    int updateAthlete(Athlete athlete);
    int updateCoach(Coach coach);
    int updateDoctor(Doctor doctor);
    int updateReferee(Referee referee);
    int updateLeader(Leader leader);

    List<Athlete> queryAthletesByTeamAccount(@Param("teamAccount") Integer teamAccount);
    List<Coach> queryCoachByTeamAccount(@Param("teamAccount") Integer teamAccount);
    List<Doctor> queryDoctorByTeamAccount(@Param("teamAccount") Integer teamAccount);
    List<Referee> queryRefereeByTeamAccount(@Param("teamAccount") Integer teamAccount);
    List<Leader> queryLeaderByTeamAccount(@Param("teamAccount") Integer teamAccount);
    List<Athlete_Item> queryAthleteItemByAthleteId(@Param("athleteId") Integer athleteId);


}
